package ve.usb;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;


public class RegistroDeportista extends org.apache.struts.action.ActionForm {
    
    
    public RegistroDeportista() {
        super();
        nombre = "";
        cedula = "";
        email = "";
        login = "";
        password = "";

    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        nombre = "";
        cedula = "";
        email = "";
        login = "";
        password = "";

    }

    public static RegistroDeportista clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        RegistroDeportista fRegistroDeportista = (RegistroDeportista) sess.getAttribute("RegistroDeportista");
        if (fRegistroDeportista == null) {
            fRegistroDeportista = new RegistroDeportista();
            sess.setAttribute("RegistroDeportista", fRegistroDeportista);
        } else {
            fRegistroDeportista.reset(mapping, request);
        }
        return fRegistroDeportista;
    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

    /**
     * Holds value of property nombre.
     */
    private String nombre;

    /**
     * Getter for property nombre.
     * @return Value of property nombre.
     */
    public String getNombre() {
        return this.nombre;
    }

    /**
     * Setter for property nombre.
     * @param nombre New value of property nombre.
     */
    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    /**
     * Holds value of property cedula.
     */
    private String cedula;

    /**
     * Getter for property cedula.
     * @return Value of property cedula.
     */
    public String getCedula() {
        return this.cedula;
    }

    /**
     * Setter for property cedula.
     * @param cedula New value of property cedula.
     */
    public void setCedula(String cedula) {
        this.cedula = cedula;
    }

    /**
     * Holds value of property email.
     */
    private String email;

    /**
     * Getter for property email.
     * @return Value of property email.
     */
    public String getEmail() {
        return this.email;
    }

    /**
     * Setter for property email.
     * @param email New value of property email.
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Holds value of property login.
     */
    private String login;

    /**
     * Getter for property login.
     * @return Value of property login.
     */
    public String getLogin() {
        return this.login;
    }

    /**
     * Setter for property login.
     * @param login New value of property login.
     */
    public void setLogin(String login) {
        this.login = login;
    }

    /**
     * Holds value of property password.
     */
    private String password;

    /**
     * Getter for property password.
     * @return Value of property password.
     */
    public String getPassword() {
        return this.password;
    }

    /**
     * Setter for property password.
     * @param password New value of property password.
     */
    public void setPassword(String password) {
        this.password = password;
    }




}